package com.cskaoyan.servlet;

import com.cskaoyan.bean.common.BaseRespVo;
import com.cskaoyan.service.AdminRegionService;
import com.cskaoyan.service.AdminRegionServiceImpl;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author stone
 * @date 2023/05/29 10:27
 */
@WebServlet("/admin/region/*")
public class AdminRegionServlet extends WdBaseServlet /*extends HttpServlet */ {

    AdminRegionService regionService = new AdminRegionServiceImpl();


    private BaseRespVo list(HttpServletRequest request, HttpServletResponse response) {
        // 1.没有传入参数就不需要做参数的接收

        // 2. Model层 使用Service的方法做对应的业务，获得Java对象
        BaseRespVo baseRespVo = regionService.allRegionList();
        return baseRespVo;


    }
}
